from django.apps import AppConfig


class UsersConfig(AppConfig):
    name = 'users'
    verbose_name = '会员管理'

    def ready(self):
        from .patches.monkey_patch import patch_auth_models_group_is_default
        patch_auth_models_group_is_default()

        from django.contrib.auth.admin import GroupAdmin
        GroupAdmin.list_display = ('name', 'is_default')

        import users.signals
